package demo4.DAO;

import org.springframework.stereotype.Component;

@Component
public class UserDAO implements IUserDAO {
    @Override
    public boolean findUserByName(String username) {
        System.out.println("UserDAO:根据用户名查询用户信息");
        return Math.random() > 0.5;
    }
}
